package com.pactera.madp.cp.api.entity.employeeWechat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * (CpEmployeeDo)实体类
 *
 * @author yushen.qi
 * @since 2021-06-29 15:04:33
 */
@Data
@TableName("cp_employee_do")
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "待办")
public class EmployeeDoEntity extends BaseEntity<EmployeeDoEntity> implements  Serializable {
    private static final long serialVersionUID = -63298678903563915L;
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "客户id")
    private String wxExternalUserid;

    @ApiModelProperty(value = "员工id")
    private String wxUserId;
    /**
     * 待办事项
     */
    @ApiModelProperty(value = "待办事项")
    private String doBody;
    /**
     *
     */
    @ApiModelProperty(value = "是否已办，1-是，2-否")
    private Integer doState;
    /**
     * 开始时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;


    @ApiModelProperty(value = "企业表id（cp_corp.id）")
    private Integer  corpId;

    @ApiModelProperty(value = "外部联系人姓名")
    private String name;

    @ApiModelProperty(value = "外部联系人昵称")
    private String nickName;

    @ApiModelProperty(value = "外部联系人的头像")
    private String avatar;
}
